grant-tables.txt:
fix to error check condition after map
blkback.c:
bug fix to grant table code in block backend
Kconfig:
amend config entry for XEN_BLKDEV_GRANT
for ( i = 0; i < BATCH_SIZE; i++ )
{
- if ( unlikely(aop[i].u.map_grant_ref.dev_bus_addr == 0) )
+ if ( unlikely(aop[i].u.map_grant_ref.handle < 0) )
{
tidyup_all(aop, i);
goto panic;
modified to use grant tables.
config XEN_BLKDEV_GRANT
- bool "Grant table substrate for block drivers (DANGEROUS)"
+ bool "Grant table substrate for block drivers"
depends on !XEN_BLKDEV_TAP_BE
default y
help
for ( i = 0; i < nseg; i++ )
{
+ fas = req->frame_and_sects[i];
#ifdef CONFIG_XEN_BLKDEV_GRANT
seg[i].buf = (aop[i].u.map_grant_ref.dev_bus_addr << PAGE_SHIFT) |
(blkif_first_sect(fas) << 9);
#else
- fas = req->frame_and_sects[i];
seg[i].buf = (fas & PAGE_MASK) | (blkif_first_sect(fas) << 9);
seg[i].nsec = blkif_last_sect(fas) - blkif_first_sect(fas) + 1;
if ( seg[i].nsec <= 0 )